package chkui.springcore.example.javabase.conversion.support;

import org.springframework.core.convert.converter.Converter;

import chkui.springcore.example.javabase.conversion.entity.PC;

public class String2PcConverter implements Converter<String, PC> {
	@Override
	/**
	 * 字符串格式:cpu=amd;ram=kingston;graphic=Navidia;
	 */
	public PC convert(String source) {
		PC pc = new PC();
		pc.pares(source);
		return pc;
	}
}
